package homework;

public class Student2 {
    String name;
    int age;
    String className;
    String stuId;
    Student2(){
    }
    Student2(String name,int age,String className,String stuId){
        this.name = name;
        this.age = age;
        this.className = className;
        this.stuId = stuId;
    }
    void sayHi(){
        System.out.println("我是"+name+",今年"+age+"岁了，班级是"+className+",学号是"+stuId);
    }
    void playWith(String anotherName){
        System.out.println(name+"和"+anotherName+"一起玩");
    }
}
